package com.xiaolin;

import com.xiaolin.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class AfterServiceStarted implements CommandLineRunner {

    @Autowired
    private AppService appService;

    @Override
    public void run(String... args) {
        //开始爬虫
//        appService.start();
        //导入ES
        appService.startES();
    }
}
